/**
 * Date:2021年9月15日 下午2:10:08
 * Copyright (c) 2021, www.bwbroad.com All Rights Reserved
 */

package org.mengyun.tcctransaction.sample.domain.dto;

import java.io.Serializable;

import org.mengyun.tcctransaction.api.TransactionContext;

/**
 * Description: TODO <br/>
 * Date:2021年9月15日 下午2:10:08 <br/>
 * 
 * @author xuejianxin
 */
public class TransactionContextDto<T> implements Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = -6229917953576435913L;

	/** 事务上下文 */
	private TransactionContext context;

	/** 内容体 */
	private T body;

	public TransactionContextDto() {
	}

	public TransactionContextDto(TransactionContext context) {
		this.context = context;
	}

	public TransactionContextDto(TransactionContext context, T body) {
		this.context = context;
		this.body = body;
	}

	public TransactionContext getContext() {
		return context;
	}

	public void setContext(TransactionContext context) {
		this.context = context;
	}

	public T getBody() {
		return body;
	}

	public void setBody(T body) {
		this.body = body;
	}

}
